using System;
using System.Collections.Generic;
using System.Text;

namespace Test {
	class Asda {
		static void MainX() {






			//-----------------------------------------
			Random rnd=new Random();
			int onew=0,twow=0,nobw=0,max=5000000;
			for(int i=0;i<max;i++)
			{
				int one=rnd.Next(9);
				int two=rnd.Next(4);
				if(one>two)
					onew++;
				else if(two>one)
					twow++;
				else if(two==one)
					nobw++;
			}
			Console.WriteLine((float)onew/max);
			Console.WriteLine((float)twow/max);
			Console.WriteLine((float)nobw/max);
		}





	}
}
